<?php

class Custom_Form_Password extends Custom_Form_Abstract{
	
	public function init(){
		
		$this->addElement('password', 'oldPassword', array(
            'decorators' => $this->elementDecorators,
			'validators' => array(
				'NotEmpty'
			),
            'label'       => 'Old Password:',
        	'required'	=>	true
        ));
		
		$this->addElement('password', 'newPassword', array(
            'decorators' => $this->elementDecorators,
			'validators' => array(
				'NotEmpty'
			),
            'label'       => 'New Password:',
        	'required'	=>	true
        ));
        
        $this->addElement('password', 'confirmPassword', array(
        	'validators' => array(
        			array('identical', false, array('token' => 'newPassword')),
        			'NotEmpty'
			
    		),
            'decorators' => $this->elementDecorators,
            'label'       => 'Confirm Password:',
        	'required'	=>	true
        ));
        
        $this->addElement('submit', 'resetPassword', array(
            'decorators' => $this->buttonDecorators,
            'label'       => 'Reset Password',
        ));
	}
}